package com.cbi.clickhouse.CGLIBProxy;

import org.springframework.cglib.proxy.Enhancer;

/**
 * @author Ivan.Qu reviewcode@163.com
 * @date 6:25 下午 2022/8/17
 */
public class MainMethod {
    public static void main(String[] args) {
        Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(UserComponent.class);
        enhancer.setCallback(new UserProxy());
        UserComponent userComponent = (UserComponent) enhancer.create();
        userComponent.say();
    }
}
